package com.rain.demo.controller;

import com.rain.demo.entity.SysFile;
import com.rain.demo.service.SysFileService;
import lombok.Getter;
import org.springframework.web.bind.annotation.*;
import lombok.AllArgsConstructor;

/**
 * 文件管理表(SysFile)表控制层
 *
 * @author whp
 * @since 2021-12-02 09:53:16
 */
@RestController
@RequestMapping("sysFile")
@AllArgsConstructor
public class SysFileController {
    /**
     * 服务对象
     */

    private SysFileService sysFileService;


    @GetMapping("info")
    public String getInfo() {
        SysFile sysFile = sysFileService.info(1458033653332226049L);
        System.out.println(sysFile);
        return sysFile.getFileName();
    }

}